/*
 * @Description:用户登录登出api
 * @Author: Ronda
 * @Date: 2021-06-29 15:52:14
 * @LastEditors: lucl
 * @LastEditTime: 2021-07-01 22:08:04
 */
import { get, post, postJSON } from '@/utils/request';

// 登录api
export function login(data) {
  return postJSON('/user/login', data);
}

// 登出api
export function logout() {
  return post('/user/logout');
}

// 注册api
export function register(data) {
  return post('/user/register', data);
}
// 员工注册api
export function registerEmployee(data){
  return post('/user/registerEmployee',data)
}
export function info (data){
  return get('/user/info' , data)
}

